package com.hl.service;

import com.hl.mapper.HomeCarouselMapper;
import com.hl.pojo.HomeCarousel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class HomeCarouselServiceImpl implements HomeCarouselService {
    @Autowired
    private HomeCarouselMapper homeCarouselMapper;
    @Override
    public List<HomeCarousel> findAll() {
       return homeCarouselMapper.findAll();
    }
    @Override
    public List<HomeCarousel> findAll1() {
        return homeCarouselMapper.findAll1();
    }


    @Override
    public int add(HomeCarousel homeCarousel) {
        return homeCarouselMapper.add(homeCarousel);
    }

    @Override
    public int delete(int id) {
        return homeCarouselMapper.delete(id);
    }

    @Override
    public int update(HomeCarousel homeCarousel) {
        return homeCarouselMapper.update(homeCarousel);
    }

    @Override
    public HomeCarousel findById(int id) {
        return homeCarouselMapper.findById(id);
    }
}
